package ooday01;

public class car {
    String brand;
    String color;
    double price;
    car(){}
    car(String brand){}
    car(String color,String brand, double price){
        this.brand=brand;
        this.color=color;
        this.price=price;

    }
    void start(){
        System.out.println("一辆"+color+"的"+brand+"牌的价格为："+price+"的车启动了");

    }
    void run(){
        System.out.println("一辆"+color+"的"+brand+"牌的价格为："+price+"的车在路上跑");

    }
    void stop(){
        System.out.println("刚停下一辆"+color+"的"+brand+"牌的价格为："+price+"的车");

    }







}
